#ifndef BUTTONGROUP_H
#define BUTTONGROUP_H
#include"cards.h"
#include"card.h"
#include <QWidget>

namespace Ui {
class ButtonGroup;
}

class ButtonGroup : public QWidget
{
    Q_OBJECT

public:
    enum Panel{start,CallLord,Empty,PassOrPlay,PlayCard};
    explicit ButtonGroup(QWidget *parent = nullptr);
    ~ButtonGroup();
    void initButton();
    void selectPage(Panel type,int bet = 0);
private:
    Ui::ButtonGroup *ui;
signals:
    void startGame();

    void playHand();

    void pass();

    void betPoint(int bet);

};

#endif // BUTTONGROUP_H
